package com.example.wechattakeaway.vo;

import com.example.wechattakeaway.entity.OrderDetail;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class OrderVo {

    private Integer orderId;

    private Integer userId;

    private Integer merchantId;

    private String merchantName;

    /*订单状态，
    1表示已提交订单
    2表示用户已经支付
    3表示商家已接单
    4表示用户已确认送达
    5表示订单取消（双方均有权限）
    * */
    private Integer orderStatus;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String acceptAddress;

    private String acceptPhone;

    private BigDecimal orderPrice;

    private String description;

    private List<OrderDetailVo> orderDetailVoList;

}
